package com.jb.security;

import com.jb.web.context.WebContext;

import com.jb.web.session.SessionUser;

import java.io.Serializable;

import java.util.Collections;
import java.util.List;
import java.util.Locale;


public class SessionUserImpl implements SessionUser, Serializable {
    static final long serialVersionUID = 123123L;
    Locale locale;
    String country = "us";
    String firstName;
    String id;
    String language = "en";
    String lastName;
    String password;
    String screenName;
    String userName;
    int access;

    public void setAccess(int access) {
        this.access = access;
    }

    public int getAccess() {
        return access;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getCountry() {
        return country;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getFirstName() {
        return firstName;
    }

    public boolean isFriend(SessionUser visitor) {
        return false;
    }

    public List getFriends() {
        return Collections.EMPTY_LIST;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getLanguage() {
        return language;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLocale(Locale locale) {
        this.locale = locale;
    }

    public Locale getLocale() {
        return locale;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setScreenName(String screenName) {
        this.screenName = screenName;
    }

    public String getScreenName() {
        return screenName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public int accessLevel(WebContext pCtx, SessionUser visitor) {
        return 0;
    }

    public void onLogin(WebContext ctx) {
    }

    public void onLogout(WebContext ctx) {
    }
}
